<%=content_for :head do%>
<title>đăng kí user</title>
<%end%>
<%=render "shared/search"%>
<%=render "shared/logon"%>
<%=render "shared/giohang"%>
<%=render "shared/footer"%>
<%=render "shared/menu"%>

<div>
	<h1>đăng kí</h1>
	<%= form_for(@user,:url => { :action => "create"}, :html => {:class => "dangki_form"}) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :username %><br />
    <%= f.text_field :username %>
  </div>
  <div class="field">
    <%= f.label :password %><br />
    <%= f.password_field :password %><br />
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.label :firstName %><br />
    <%= f.text_field :firstName %>
  </div>
  <div class="field">
    <%= f.label :lastName %><br />
    <%= f.text_field :lastName %>
  </div>
  <div class="actions">
    <%= f.submit "đăng kí" %>
  </div>
<% end %>
</div>
